//
//  BaseUICollectionView.h
//  NovartisPPH
//
//  Created by Sidney on 13-9-27.
//  Copyright (c) 2013年 iSoftstone infomation Technology (Group) Co.,Ltd. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol CollectionViewOperationDelegate;

@interface BaseUICollectionView : UICollectionView<UICollectionViewDelegate>

@property(nonatomic,assign)BOOL isLoadMore;//下拉加载更多
@property(nonatomic,assign)BOOL isRefreshfirstPage;//上拉刷新
@property(nonatomic,assign)BOOL isRefreshing;//是否正在刷新
@property(nonatomic,strong)id <CollectionViewOperationDelegate> opetationDelegate;

//添加下拉刷新界面
- (void)addRefreshFirstPageView;
//停止刷新.恢复原状
- (void)stopRefreshFirstPage;
//移出界面
- (void)removeRefreshFirstPageView;

//添加加载更多按钮
- (void)addReloadMoreDataBtn;
//加载完列表后,刷新位置
- (void)refreshLoadMoreBtnFrame;
//移出加载更多按钮
- (void)removeReloadMoreDataBtn;

@end


@protocol CollectionViewOperationDelegate <NSObject>
@optional
- (void)getMoreData:(BaseUICollectionView *)scrollView;
- (void)refreshFirstPage:(BaseUICollectionView *)scrollView;

@end

